
:root {
     --primary-color: #2c3e50;
     --secondary-color: #3498db;
     --accent-color: #68bb59;
     --text-color: #333;
     --light-color: #ecf0f1;
     --dark-color: #1f2836;
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     color: var(--text-color);
     overflow-x: hidden;
     background-color: #f8f9fa;
 }

 /* Top Header */
 .top-header {
     background-color: var(--primary-color);
     color: white;
     padding: 8px 0;
     font-size: 14px;
 }

 .top-header a {
     color: white;
     text-decoration: none;
     transition: all 0.3s ease;
 }

 .top-header a:hover {
     color: var(--secondary-color);
 }

 /* Logo */
.logo-container {
padding: 15px 0;
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
text-align: center; /* Added for extra centering */
}

.logo-img {
max-height: 150px;
width: auto;
margin: 0 auto; /* Centers the image horizontally */
display: block; /* Needed for margin auto to work */
}

.logo-text, .logo-text-hindi {
text-align: center; /* Ensure text is centered */
width: 100%; /* Full width for proper centering */
}


/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}
 /* Navigation */
 .navbar {
     background-color: white;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }

 .navbar-nav .nav-link {
     color: var(--primary-color);
     font-weight: 500;
     padding: 10px 15px;
     transition: all 0.3s ease;
 }

 .navbar-nav .nav-link:hover,
 .navbar-nav .nav-link.active {
     color: var(--secondary-color);
 }

 .dropdown-menu {
     border: none;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .dropdown-item {
     transition: all 0.3s ease;
 }

 .dropdown-item:hover {
     background-color: var(--secondary-color);
     color: white;
 }

 /* Placement Banner */
 .placement-banner {
     background-image: url('civil.jpg');
     background-size: cover;
     height: 300px;
     display: flex;
     align-items: center;
     margin-top: 20px;
     position: relative;
 }

 .placement-banner::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
 }

 .placement-content {
     position: relative;
     color: white;
     text-align: center;
     width: 100%;
 }

 .placement-content h3 {
     font-size: 2.5rem;
     color: #ffc600;
     text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
 }

 /* Department Tabs */
 .department-tabs {
     background-color: #f8f9fa;
     padding: 20px 0;
 }

 .nav-tabs .nav-link {
     color: var(--primary-color);
     font-weight: 500;
     border: none;
     padding: 10px 20px;
 }

 .nav-tabs .nav-link.active {
     color: var(--secondary-color);
     background-color: transparent;
     border-bottom: 3px solid var(--secondary-color);
 }

 .nav-tabs .nav-link:hover {
     color: var(--secondary-color);
 }

 /* Faculty Table Section */
 .faculty-section {
     padding: 60px 0;
 }

 .section-heading {
     text-align: center;
     margin-bottom: 40px;
     position: relative;
 }

 .section-heading h2 {
     color: #0369A0;
     font-weight: 700;
     display: inline-block;
     padding-bottom: 15px;
 }

 .section-heading h2:after {
     content: '';
     position: absolute;
     width: 80px;
     height: 3px;
     background: var(--accent-color);
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
 }


 /* Faculty Table Section - Improved Mobile View */
 .faculty-section {
     padding: 40px 0;
 }

 .faculty-container {
     background: white;
     border-radius: 10px;
     box-shadow: 0 5px 15px rgba(0,0,0,0.05);
     padding: 20px;
     margin-bottom: 30px;
     overflow-x: auto;
 }

 .faculty-table {
     width: 100%;
     min-width: 600px; /* Ensures table doesn't get too narrow */
     border-collapse: separate;
     border-spacing: 0;
 }

 .faculty-table thead th {
     background-color: #0369A0;
     color: white;
     padding: 12px 15px;
     text-align: center;
     font-weight: 600;
     position: sticky;
     top: 0;
 }

 .faculty-table tbody tr {
     transition: all 0.3s ease;
 }

 .faculty-table tbody tr:hover {
     background-color: #f1f9fe;
 }

 .faculty-table td {
     padding: 15px;
     border-bottom: 1px solid #e0e0e0;
     vertical-align: middle;
 }

 .faculty-img {
     width: 80px;
     height: 80px;
     object-fit: cover;
     border-radius: 50%;
     border: 2px solid #e0e0e0;
     display: block;
     margin: 0 auto;
 }

 .faculty-name {
     font-weight: 600;
     color: var(--primary-color);
     margin-bottom: 5px;
     text-align: center;
 }

 .faculty-position {
     text-align: center;
     color: #666;
     font-size: 0.9rem;
     margin-bottom: 10px;
 }

 .faculty-details p {
     margin-bottom: 8px;
     display: flex;
     align-items: center;
     font-size: 0.9rem;
 }

 .faculty-details i {
     width: 20px;
     color: var(--accent-color);
     margin-right: 8px;
     text-align: center;
     font-size: 0.9rem;
 }

 /* Stacked Mobile View */
 @media (max-width: 767px) {
     .faculty-table {
         display: block;
         min-width: 100%;
     }
     
     .faculty-table thead {
         display: none;
     }
     
     .faculty-table tbody tr {
         display: block;
         margin-bottom: 20px;
         border: 1px solid #e0e0e0;
         border-radius: 8px;
         padding: 15px;
         position: relative;
     }
     
     .faculty-table td {
         display: flex;
         flex-direction: column;
         padding: 10px 0;
         border: none;
         text-align: center;
     }
     
     .faculty-table td:before {
         content: attr(data-label);
         font-weight: bold;
         color: var(--primary-color);
         margin-bottom: 5px;
         font-size: 0.9rem;
     }
     
     .faculty-img {
         width: 100px;
         height: 100px;
         margin-bottom: 15px;
     }
     
     .faculty-details {
         text-align: left;
         padding-left: 10px;
     }
     
     .faculty-details p {
         justify-content: center;
     }
 }

 /* Small mobile devices */
 @media (max-width: 480px) {
     .faculty-img {
         width: 80px;
         height: 80px;
     }
     
     .faculty-name {
         font-size: 1rem;
     }
     
     .faculty-position {
         font-size: 0.8rem;
     }
     
     .faculty-details p {
         font-size: 0.8rem;
     }
 }

 /* Footer */
 .footer {
     background-color: var(--dark-color);
     color: white;
     padding: 60px 0 20px;
 }

 .footer h3 {
     font-size: 20px;
     margin-bottom: 20px;
     position: relative;
     padding-bottom: 10px;
 }

 .footer h3::after {
     content: '';
     position: absolute;
     left: 0;
     bottom: 0;
     width: 50px;
     height: 2px;
     background-color: var(--accent-color);
 }

 .footer a {
     color: #ddd;
     text-decoration: none;
     transition: all 0.3s ease;
 }

 .footer a:hover {
     color: var(--accent-color);
     padding-left: 5px;
 }

 .social-icons {
     list-style: none;
     padding: 0;
     display: flex;
 }

 .social-icons li {
     margin-right: 10px;
 }

 .social-icons a {
     display: inline-block;
     width: 36px;
     height: 36px;
     line-height: 36px;
     text-align: center;
     border-radius: 50%;
     background-color: rgba(255, 255, 255, 0.1);
     transition: all 0.3s;
     color: white;
 }

 .social-icons a:hover {
     background-color: var(--accent-color);
     color: white;
     transform: scale(1.1);
 }

 .contact-info i {
     width: 20px;
     text-align: center;
     margin-right: 10px;
     color: var(--accent-color);
 }

 .contact-info li {
     margin-bottom: 10px;
     display: flex;
     align-items: center;
 }

 .newsletter input {
     width: 100%;
     padding: 10px;
     margin-bottom: 10px;
     border: none;
     border-radius: 4px;
 }

 .newsletter button {
     width: 100%;
     padding: 10px;
     border: none;
     background-color: gold;
     border-radius: 4px;
     font-weight: 600;
 }
/* Marquee */
.marquee-container {
overflow: hidden;
white-space: nowrap;
width: 100%;
}
.marquee-content {
display: inline-block;
padding-left: 100%;
animation: marquee 20s linear infinite;
}
 /* Responsive Adjustments */
 @media (max-width: 992px) {
     .logo-text {
         font-size: 1.2rem;
     }
     .logo-text-hindi {
         font-size: 1.1rem;
     }
     .placement-content h3 {
         font-size: 2rem;
     }
 }

 @media (max-width: 768px) {
     .placement-banner {
         height: 250px;
         margin-top: 15px;
     }
     .faculty-img {
         width: 120px;
         height: 120px;
     }
     .faculty-table td, .faculty-table th {
         padding: 10px;
     }
 }

 @media (max-width: 576px) {
     .placement-banner {
         height: 200px;
     }
     .placement-content h3 {
         font-size: 1.5rem;
     }
     .faculty-img {
         width: 100px;
         height: 100px;
     }
     .footer {
         padding: 40px 0 20px;
     }
 }
   
@media (max-width: 768px) {
.logo-img {
 max-height: 120px; /* Slightly smaller on mobile */
 margin-bottom: 15px;
}

.logo-text {
 font-size: 1.3rem; /* Adjusted for mobile */
}

.logo-text-hindi {
 font-size: 1.1rem; /* Adjusted for mobile */
}
}
